package com.changzhi.common.enums;


/**
 * 娱乐活动类型枚举
 * 
 * @author lxw
 *
 */
public enum ActivityConfigEnum {

	CHRISTMAS_SMALL_ICON(39, 1, "掉落礼物样式配置"),
	CHRISTMAS_START_ICON(39, 2, "开始进度图标配置"),
	CHRISTMAS_START_DIALOG(39, 3, "开始弹窗配置"),
	CHRISTMAS_AWARD_DIALOG(39, 4, "奖励弹窗配置"),
	CHRISTMAS_BANNER(39, 5, "横幅配置"),
	CHRISTMAS_SCREEN(39, 6, "公屏提示文案配置"),

	;

	private Integer activityId;
	private Integer type;
	private String desc;

	ActivityConfigEnum(Integer activityId, Integer type, String desc) {
		this.activityId = activityId;
		this.type = type;
		this.desc = desc;
	}




	public String getDesc() {
		return desc;
	}

	public Integer getActivityId() {
		return activityId;
	}

	public Integer getType() {
		return type;
	}

	public static String getDesc(Integer activityId, Integer type){
		for (ActivityConfigEnum anEnum : ActivityConfigEnum.values()) {
			if(anEnum.activityId.equals(activityId) && anEnum.type.equals(type)){
				return anEnum.desc;
			}
		}
		return null;
	}
}

